package com.baifc.wiringbean.soundsystem;

import java.util.List;

/**
 * projectName: springinaction
 * packageName: com.baifc.wiringbean.soundsystem
 * Created: 2019/4/23.
 * Auther: baifc
 * Description:
 */
public class BlankDisc implements CompactDisc {

    private String title;

    private String artist;

    private List<String> tracks;

    public BlankDisc(String title, String artist, List<String> tracks) {
        this.title = title;
        this.artist = artist;
        this.tracks = tracks;
    }

    public void play() {
        System.out.println("Playing " + title + " by " + artist);
        for (String track : tracks) {
            System.out.println("track-->" + track);
        }
    }
}
